<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Block Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__axidmac__block__functions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Block Functions<div class="ingroups"><a class="el" href="group__group__axidmac.html">AXIDMAC      (AXI Direct Memory Access Controller)</a> &raquo; <a class="el" href="group__group__axidmac__functions.html">Functions</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga99bc13b7bb7568c5a15c17352ceed8ae"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__block__functions.html#ga99bc13b7bb7568c5a15c17352ceed8ae">Cy_AXIDMAC_Enable</a> (AXI_DMAC_Type *base)</td></tr>
<tr class="memdesc:ga99bc13b7bb7568c5a15c17352ceed8ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the AXIDMAC block.  <a href="#ga99bc13b7bb7568c5a15c17352ceed8ae">More...</a><br /></td></tr>
<tr class="separator:ga99bc13b7bb7568c5a15c17352ceed8ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad31f6c4eec5a8c4a10e454b43c15184c"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__block__functions.html#gad31f6c4eec5a8c4a10e454b43c15184c">Cy_AXIDMAC_Disable</a> (AXI_DMAC_Type *base)</td></tr>
<tr class="memdesc:gad31f6c4eec5a8c4a10e454b43c15184c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the AXIDMAC block.  <a href="#gad31f6c4eec5a8c4a10e454b43c15184c">More...</a><br /></td></tr>
<tr class="separator:gad31f6c4eec5a8c4a10e454b43c15184c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga241e928227c4b2a89c9f8df2d64f59a1"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__block__functions.html#ga241e928227c4b2a89c9f8df2d64f59a1">Cy_AXIDMAC_GetAllChannelStatus</a> (AXI_DMAC_Type *base)</td></tr>
<tr class="memdesc:ga241e928227c4b2a89c9f8df2d64f59a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the channel enabled status of all channels in a AXIDMAC block.  <a href="#ga241e928227c4b2a89c9f8df2d64f59a1">More...</a><br /></td></tr>
<tr class="separator:ga241e928227c4b2a89c9f8df2d64f59a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf5c6ebb957db36168d08018c36605d2c"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__block__functions.html#gaf5c6ebb957db36168d08018c36605d2c">Cy_AXIDMAC_GetActiveSecureChannel</a> (AXI_DMAC_Type const *base)</td></tr>
<tr class="memdesc:gaf5c6ebb957db36168d08018c36605d2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the status of the active/pending secure channels of the AXIDMAC block.  <a href="#gaf5c6ebb957db36168d08018c36605d2c">More...</a><br /></td></tr>
<tr class="separator:gaf5c6ebb957db36168d08018c36605d2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9aace444563bc04c9e38c76e11769e30"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__block__functions.html#ga9aace444563bc04c9e38c76e11769e30">Cy_AXIDMAC_GetActiveNonSecureChannel</a> (AXI_DMAC_Type const *base)</td></tr>
<tr class="memdesc:ga9aace444563bc04c9e38c76e11769e30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the status of the active/pending non-secure channels of the AXIDMAC block.  <a href="#ga9aace444563bc04c9e38c76e11769e30">More...</a><br /></td></tr>
<tr class="separator:ga9aace444563bc04c9e38c76e11769e30"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga99bc13b7bb7568c5a15c17352ceed8ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga99bc13b7bb7568c5a15c17352ceed8ae">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Enable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_AXIDMAC_Enable </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the AXIDMAC block. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">  #define AXIDMAC_DESCRIPTOR CY_SECTION(&quot;.cy_socmem_data&quot;) cy_stc_axidmac_descriptor_t</span></div><div class="line">  <span class="comment">/* Scenario: Initialize a 2D descriptor with descriptors, src and dst are in SOCMEM*/</span></div><div class="line"><span class="preprocessor">  #define DATACNT (8UL)</span></div><div class="line">  CY_SECTION(<span class="stringliteral">&quot;.cy_socmem_data&quot;</span>) <a class="code" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> descriptor;</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) <a class="code" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> nextDescriptor;</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) uint32_t src[DATACNT];</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) uint32_t dst[DATACNT];</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) <a class="code" href="structcy__stc__axidmac__descriptor__config__t.html">cy_stc_axidmac_descriptor_config_t</a> descriptor_cfg =</div><div class="line">  {</div><div class="line">        .<a class="code" href="structcy__stc__dmac__descriptor__config__t.html#ab968eec67221ce9448bc3d7a51012232">retrigger</a> = <a class="code" href="group__group__axidmac__enums.html#ggaa7f457a18310c7bd887821d425c675b3af31c9d4a128661a3f2eb6adb25d7380f">CY_AXIDMAC_RETRIG_IM</a>,</div><div class="line">        .interruptType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .triggerOutType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .channelState = <a class="code" href="group__group__axidmac__enums.html#ggabecae08a8e709d79c27b4a13a1eeae30a67790522e6a4ba23b3c12118cbfa715e">CY_AXIDMAC_CHANNEL_ENABLED</a>,</div><div class="line">        .triggerInType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .descriptorType = <a class="code" href="group__group__axidmac__enums.html#ggac2a082bccd4add75b95c640c950ef382ab2c730977dc87903496084f240dac6dd">CY_AXIDMAC_2D_MEMORY_COPY</a>,</div><div class="line">        .srcAddress = &amp;src,</div><div class="line">        .dstAddress = &amp;dst,</div><div class="line">        .mCount=1U,</div><div class="line">        .srcXincrement = 1U,</div><div class="line">        .dstXincrement = 1U,</div><div class="line">        .xCount = DATACNT,</div><div class="line">        .srcYincrement = 0U,</div><div class="line">        .dstYincrement = 0U,</div><div class="line">        .yCount = 1UL,</div><div class="line">        .nextDescriptor = &amp;nextDescriptor,</div><div class="line">  };</div><div class="line"></div><div class="line"><span class="keywordtype">void</span> snippet_Cy_AXIDMAC_Enable(<span class="keywordtype">void</span>)</div><div class="line">{</div><div class="line">  <span class="comment">/* Scenario: Setup and enable the AXIDMAC channel 0 */</span></div><div class="line">    <a class="code" href="structcy__stc__axidmac__channel__config__t.html">cy_stc_axidmac_channel_config_t</a> channelConfig;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#aaf9ec3367eb91a563440106074b008fd">enable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#a5ecb23aa7ccb35395648b87638ac633b">bufferable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#a176924776881cbaf0d4990e0677f7d08">descriptor</a> = &amp;descriptor;</div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__axidmac__enums.html#gga6a5396b8cde76b34bf92edf6ee0cbd26aa49c31c356471da12d4afb1ae188b3c2">CY_AXIDMAC_SUCCESS</a> != <a class="code" href="group__group__axidmac__descriptor__functions.html#ga4262d20e19180103a6f46f3e0028dc8e">Cy_AXIDMAC_Descriptor_Init</a>(&amp;descriptor, &amp;descriptor_cfg))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__axidmac__enums.html#gga6a5396b8cde76b34bf92edf6ee0cbd26aa49c31c356471da12d4afb1ae188b3c2">CY_AXIDMAC_SUCCESS</a> != <a class="code" href="group__group__axidmac__channel__functions.html#gaa9240c992691933a060a6e4bfbf699b9">Cy_AXIDMAC_Channel_Init</a>(AXI_DMAC, 0UL, &amp;channelConfig))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#gae25a356409f49be5da036ca9380430cd">Cy_AXIDMAC_Channel_SetDescriptor</a>(AXI_DMAC, 0UL, &amp;descriptor);</div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#ga4efb1eb324529dd7ef7a3842a69ebc8d">Cy_AXIDMAC_Channel_SetPriority</a>(AXI_DMAC, 0UL, 3UL);</div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#ga59a71b72242ec040773d1e41d49ef26f">Cy_AXIDMAC_Channel_Enable</a>(AXI_DMAC, 0UL);</div><div class="line">    <a class="code" href="group__group__axidmac__block__functions.html#ga99bc13b7bb7568c5a15c17352ceed8ae">Cy_AXIDMAC_Enable</a>(AXI_DMAC);</div><div class="line"></div><div class="line">}</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gad31f6c4eec5a8c4a10e454b43c15184c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad31f6c4eec5a8c4a10e454b43c15184c">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_AXIDMAC_Disable </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the AXIDMAC block. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Disable the AXIDMAC channel 0 if it&#39;s priority equals 3 */</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (3UL == <a class="code" href="group__group__axidmac__channel__functions.html#ga869458a072653c8569d183a235c755b7">Cy_AXIDMAC_Channel_GetPriority</a>(AXI_DMAC, 0UL))</div><div class="line">    {    </div><div class="line">        <span class="keywordflow">if</span> (0UL != <a class="code" href="group__group__axidmac__channel__functions.html#ga81fb2d1336aa2b068e23d7332f08f60c">Cy_AXIDMAC_Channel_GetStatus</a>(AXI_DMAC, 0UL))</div><div class="line">        {</div><div class="line">            <a class="code" href="group__group__axidmac__channel__functions.html#ga7fcb203a8a01a2f1bc28f6acbab761da">Cy_AXIDMAC_Channel_Disable</a>(AXI_DMAC, 0UL);</div><div class="line">            <a class="code" href="group__group__axidmac__channel__functions.html#ga82e2e0fbf38f4bc4c2b56a06a15809ff">Cy_AXIDMAC_Channel_DeInit</a>(AXI_DMAC, 0UL);</div><div class="line"></div><div class="line">            <span class="comment">/* if needed (if there is only channel used) the whole block can be disabled */</span></div><div class="line">            <a class="code" href="group__group__axidmac__block__functions.html#gad31f6c4eec5a8c4a10e454b43c15184c">Cy_AXIDMAC_Disable</a>(AXI_DMAC);</div><div class="line">        }</div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga241e928227c4b2a89c9f8df2d64f59a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga241e928227c4b2a89c9f8df2d64f59a1">&#9670;&nbsp;</a></span>Cy_AXIDMAC_GetAllChannelStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_AXIDMAC_GetAllChannelStatus </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the channel enabled status of all channels in a AXIDMAC block. </p>
<p>Example if return value is 7 then channel 0,1,2 are enabled.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns a bit-field with all of the currently enabled channels in the AXIDMAC block.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Get all channel status */</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__axidmac__block__functions.html#ga241e928227c4b2a89c9f8df2d64f59a1">Cy_AXIDMAC_GetAllChannelStatus</a> (AXI_DMAC);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaf5c6ebb957db36168d08018c36605d2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf5c6ebb957db36168d08018c36605d2c">&#9670;&nbsp;</a></span>Cy_AXIDMAC_GetActiveSecureChannel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_AXIDMAC_GetActiveSecureChannel </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the status of the active/pending secure channels of the AXIDMAC block. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns a bit-field with all of the currently active/pending secure channels in the AXIDMAC block.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Get the Active channel and disable channel 0 */</span></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#ga59a71b72242ec040773d1e41d49ef26f">Cy_AXIDMAC_Channel_Enable</a>(AXI_DMAC, 0UL);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (0UL != Cy_AXIDMAC_GetActiveChannel(AXI_DMAC))</div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__axidmac__channel__functions.html#ga7fcb203a8a01a2f1bc28f6acbab761da">Cy_AXIDMAC_Channel_Disable</a>(AXI_DMAC, 0UL);</div><div class="line">        <a class="code" href="group__group__axidmac__channel__functions.html#ga82e2e0fbf38f4bc4c2b56a06a15809ff">Cy_AXIDMAC_Channel_DeInit</a>(AXI_DMAC, 0UL);</div><div class="line"></div><div class="line">        <span class="comment">/* if needed (if there is only channel used) the whole block can be disabled */</span></div><div class="line">        <a class="code" href="group__group__axidmac__block__functions.html#gad31f6c4eec5a8c4a10e454b43c15184c">Cy_AXIDMAC_Disable</a>(AXI_DMAC);</div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga9aace444563bc04c9e38c76e11769e30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9aace444563bc04c9e38c76e11769e30">&#9670;&nbsp;</a></span>Cy_AXIDMAC_GetActiveNonSecureChannel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_AXIDMAC_GetActiveNonSecureChannel </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the status of the active/pending non-secure channels of the AXIDMAC block. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns a bit-field with all of the currently active/pending non-secure channels in the AXIDMAC block.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Get the Active channel and disable channel 0 */</span></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#ga59a71b72242ec040773d1e41d49ef26f">Cy_AXIDMAC_Channel_Enable</a>(AXI_DMAC, 0UL);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (0UL != Cy_AXIDMAC_GetActiveChannel(AXI_DMAC))</div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__axidmac__channel__functions.html#ga7fcb203a8a01a2f1bc28f6acbab761da">Cy_AXIDMAC_Channel_Disable</a>(AXI_DMAC, 0UL);</div><div class="line">        <a class="code" href="group__group__axidmac__channel__functions.html#ga82e2e0fbf38f4bc4c2b56a06a15809ff">Cy_AXIDMAC_Channel_DeInit</a>(AXI_DMAC, 0UL);</div><div class="line"></div><div class="line">        <span class="comment">/* if needed (if there is only channel used) the whole block can be disabled */</span></div><div class="line">        <a class="code" href="group__group__axidmac__block__functions.html#gad31f6c4eec5a8c4a10e454b43c15184c">Cy_AXIDMAC_Disable</a>(AXI_DMAC);</div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
